package com.jiangxjsy.admin.mapper;

import com.jiangxjsy.model.admin.entity.AdminModelSort;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * wukong-crm-master
 * 蒋胜宇
 * 2025/6/6 16:10
 */

public interface AdminModelSortMapper {
    /**
     * 根据类型和用户 id 查询模型排序信息
     *
     * @param type 类型
     * @param userId 用户 id
     * @return 模型排序信息
     */
    @Select("select model from wk_admin_model_sort where type = #{type} and user_id = #{userId} order by sort limit 1")
    AdminModelSort selectByTypeAndUserId(@Param("type") Integer type, @Param("userId") Long userId);
}
